<!DOCTYPE html>
    <head>
        <?php echo $bagian['head'] ?>
        <?php echo $bagian['css'] ?>
        <?php echo $bagian['js'] ?>
    </head>

    <body>

        <div class="mainwrapper">

            <!-- START OF LEFT PANEL -->
            <div class="leftpanel">

                <div class="logopanel">
                    <h1><a href="<?php echo site_url("admin") ?>">SMAN 1 SUKABUMI</a></h1>
                </div><!--logopanel-->

                <div class="datewidget"><?php
                    echo tglNoTime(NULL);
                    ?></div>

                <div class="plainwidget">
                    Anda menggunakan akun :<br/>
                    <b>
                        <?php echo $this->session->userdata('username_adm') ?>
                    </b>
                </div><!--plainwidget-->

                <div class="leftmenu">        
                    <?php echo $bagian['sidebar'] ?>
                </div><!--leftmenu-->

            </div><!--mainleft-->
            <!-- END OF LEFT PANEL -->

            <!-- START OF RIGHT PANEL -->
            <div class="rightpanel">
                <div class="headerpanel">
                    <a href="" class="showmenu"></a>
                    <div class="headerright">
                        <div class="dropdown userinfo">
                            <a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="#"><?php echo $this->session->userdata('username_adm') ?> <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo site_url("admin/login/logout") ?>"><span class="icon-off"></span> Sign Out</a></li>
                            </ul>
                        </div><!--dropdown-->

                    </div><!--headerright-->

                </div><!--headerpanel-->
                <div class="breadcrumbwidget">
                    <?php echo $bagian['topbar'] ?>
                </div><!--breadcrumbwidget-->
                <?php
                if ($TITLE != ""):
                    ?>
                    <div class="pagetitle">
                        <h1><?php echo $TITLE ?></h1> <span><?php echo $bagian['deskripsi'] ?></span>
                    </div><!--pagetitle-->
                <?php endif; ?>
                <div class="maincontent">
                    <div class="contentinner content-dashboard">
                        <?php echo $bagian['content'] ?>
                    </div><!--contentinner-->
                </div><!--maincontent-->

            </div><!--mainright-->
            <!-- END OF RIGHT PANEL -->

            <div class="clearfix"></div>

            <div class="footer">
                <?php echo $bagian['footer'] ?>
            </div><!--footer-->

        </div><!--mainwrapper-->
    </body>
</html>